package com.losdun.weixin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Description
 * @Author Sword.Ye
 * @Date 2025/8/18
 **/
@Data
@TableName("wechat_user")
public class WechatUser {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long sysUserId;

    /**
     * 1：小程序 2公众号
     */
    private Integer userType=1;

    private String unionId;
    private String nickName;
    private String phone;
    private String openId;
    private String avatar;
    /**
     * 1:订阅 0：未订阅
     */
    private Integer subscribe;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

}
